package selef.xiafan.entity.order;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import selef.xiafan.entity.Customer;

import javax.persistence.*;
import java.io.Serializable;
import java.util.List;

/**
 * @author xiafan
 * @version 1.0
 * @date 2021/8/1 7:53
 */
@Entity
@Table(name = "t_settlement")
@Data
@JsonIgnoreProperties({"handler", "hibernateLazyInitializer"})
public class Settlement implements Serializable {
    @Id
    @Column(name = "settle_id")
    private String settleId;

    @Column(name = "oid")
    private String orderId;

    // 是否结算
    private Boolean status;

    private String type; // 支付方式

    @Transient
    private Order order;
    @Transient
    private Customer customer;
    @Transient
    private List<OrderItem> orderItem;
    @Transient
    private String address;

    /*
     * 分页信息
     * */
    @Transient
    private Integer page = 1;
    @Transient
    private Integer size = 6;
}
